import { useContext } from 'react';
import { RouterContext } from './Router';

export const useLocation: any = () => {
  return useContext(RouterContext)?.location;
};

export const useHistory: any = () => {
  return useContext(RouterContext)?.history;
};
